package com.yiyuan.weixin.weixinOutservice;

import com.yiyuan.weixin.weixinOutservice.Iml.ImlAccessToken;
import com.yiyuan.weixin.weixinOutservice.Iml.ImlMenuService;
import com.yiyuan.weixin.weixinOutservice.service.WeiXinService;

/**
 *
 * Created by admin on 2017/3/29.
 */
public class OutApp {


    public static void main(String[] args) {
        WeiXinService weiXinService=new ImlMenuService();
//        weiXinService.createMenu( "{\n" +
//                "     \"button\":[\n" +
//                "     {\t\n" +
//                "          \"type\":\"click\",\n" +
//                "          \"name\":\"最新行情\",\n" +
//                "          \"key\":\"ty_key_hq\"\n" +
//                "      },\n" +
//                "      {\n" +
//                "           \"name\":\"交易\",\n" +
//                "           \"sub_button\":[\n" +
//                "           {\t\n" +
//                "\t\t\t\t\"type\":\"click\",\n" +
//                "\t\t\t\t\"name\":\"卖出\",\n" +
//                "\t\t\t\t\"key\":\"ty_key_sell\"\n" +
//                "            },\n" +
//                "            {\t\n" +
//                "\t\t\t\t\"type\":\"click\",\n" +
//                "\t\t\t\t\"name\":\"买入\",\n" +
//                "\t\t\t\t\"key\":\"ty_key_buy\"\n" +
//                "            },\n" +
//                "            {\n" +
//                "               \"type\":\"click\",\n" +
//                "               \"name\":\"挂单卖出\",\n" +
//                "               \"key\":\"ty_key_sell_book\"\n" +
//                "            },\n" +
//                "            {\n" +
//                "               \"type\":\"click\",\n" +
//                "               \"name\":\"挂单买入\",\n" +
//                "               \"key\":\"ty_key_buy_book\"\n" +
//                "            }]\n" +
//                "       },\n" +
//                "      {\n" +
//                "           \"name\":\"我的\",\n" +
//                "           \"sub_button\":[\n" +
//                "           {\t\n" +
//                "\t\t\t\t\"type\":\"click\",\n" +
//                "\t\t\t\t\"name\":\"资产\",\n" +
//                "\t\t\t\t\"key\":\"ty_key_balance\"\n" +
//                "            },\n" +
//                "            {\t\n" +
//                "\t\t\t\t\"type\":\"click\",\n" +
//                "\t\t\t\t\"name\":\"订单\",\n" +
//                "\t\t\t\t\"key\":\"ty_key_order\"\n" +
//                "            },\n" +
//                "            {\n" +
//                "               \"type\":\"click\",\n" +
//                "               \"name\":\"等级\",\n" +
//                "               \"key\":\"ty_key_level\"\n" +
//                "            }]\n" +
//                "       }]\n" +
//                " }");
//        weiXinService.deleteMenu();

        ImlAccessToken accessTokenIml=new ImlAccessToken();
        System.out.println(accessTokenIml.getAccessToken());
    }
}
